package collection;

import java.util.Arrays;
import java.util.List;

public class ArrayToList {
    public static void main(String[] args) {
        String[]str={"1","hello","3","%","&","10"};
        System.out.println(Arrays.toString(str));

        List<String> list = Arrays.asList(str);
        System.out.println("list"+list);
        list.set(1,"2");
        System.out.println(Arrays.toString(str));
    }
}
